<ion-view view-title="实名认证" class="p-gray-bg">
    <ion-nav-bar class="bar-energized">
    </ion-nav-bar>
    <ion-header-bar class="bar-energized">
        <a class="button-icon icon ion-chevron-left" style="color:white" href="#/tab/dash"> </a>
        <h3 class="title">实名认证</h3>
    </ion-header-bar>
    <ion-content>
        <ion-list ng-hide="isIdentifier">
            <ion-item class="item-input">
                <span class="item-label" style="width:30%">真实姓名</span>
                <input type="text" class="orangebox" style="font-size:14px;" placeholder="请输入您身份证上的姓名!" ng-model="identifierInfo.realname" />
            </ion-item>
            <ion-item class="item-input">
                <span class="item-label" style="width:30%">身份证号</span>
                <input type="text" class="orangebox" style="font-size:14px;" placeholder="请输入您的身份证号码!" ng-model="identifierInfo.idcardcode" />
             </ion-item>
            <ion-item class="item-input">
                <button class="button button-full button-energized" ng-click="submitIdentifierBind(identifierInfo.realname,identifierInfo.idcardcode)">申请实名认证</button>
            </ion-item>
        </ion-list>

        <ion-list ng-show="isIdentifier">
            <ion-item>
                <div class="center" >
                <img src="img/mycard.png" >
                    </div>
            </ion-item>
            <ion-item>
                <h2 class="center energized">已实名认证</h2>
            </ion-item>
            <ion-item>
                <h2 class="center energized">{{identifierInfo.realname}} - {{identifierInfo.idcardcode}}</h2>
            </ion-item>
        </ion-list>
    </ion-content>
</ion-view>